<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * BaseWebchatUser
 *
 * @ORM\Table(name="base_webchat_user")
 * @ORM\Entity(repositoryClass="AdminBundle\Repository\BaseWebchatUserRepository")
 */
class BaseWebchatUser
{
    /**
     * @var string
     *
     * @ORM\Column(name="nickname", type="string", length=45, nullable=false)
     */
    private $nickname = '';

    /**
     * @var string
     *
     * @ORM\Column(name="user_name", type="string", length=100, nullable=false)
     */
    private $userName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="mobile", type="string", length=45, nullable=false)
     */
    private $mobile = '';

    /**
     * @var string
     *
     * @ORM\Column(name="password", type="string", length=45, nullable=false)
     */
    private $password = '';

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_enabled", type="boolean", nullable=false)
     */
    private $isEnabled = true;

    /**
     * @var string
     *
     * @ORM\Column(name="creator", type="string", length=45, nullable=false)
     */
    private $creator = '';

    /**
     * @var string
     *
     * @ORM\Column(name="ip", type="string", length=20, nullable=false)
     */
    private $ip = '';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var string
     *
     * @ORM\Column(name="country", type="string", length=45, nullable=false)
     */
    private $country = '';

    /**
     * @var string
     *
     * @ORM\Column(name="province", type="string", length=45, nullable=false)
     */
    private $province = '';

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string", length=45, nullable=false)
     */
    private $city = '';

    /**
     * @var string
     *
     * @ORM\Column(name="signature", type="string", length=90, nullable=false)
     */
    private $signature = '';

    /**
     * @var string
     *
     * @ORM\Column(name="sex", type="string", length=10, nullable=false)
     */
    private $sex = '';

    /**
     * @var string
     *
     * @ORM\Column(name="head_img_url", type="string", length=90, nullable=false)
     */
    private $headImgUrl = '';

    /**
     * @var string
     *
     * @ORM\Column(name="email", type="string", length=45, nullable=false)
     */
    private $email = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="device_id", type="integer", nullable=false)
     */
    private $deviceId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="device_text", type="string", length=90, nullable=false)
     */
    private $deviceText = '';

    /**
     * @var string
     *
     * @ORM\Column(name="device_imei", type="string", length=45, nullable=false)
     */
    private $deviceImei = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;


    /**
     * Set nickname
     *
     * @param string $nickname
     *
     * @return BaseWebchatUser
     */
    public function setNickname($nickname)
    {
        $this->nickname = $nickname;

        return $this;
    }

    /**
     * Get nickname
     *
     * @return string
     */
    public function getNickname()
    {
        return $this->nickname;
    }

    /**
     * Set userName
     *
     * @param string $userName
     *
     * @return BaseWebchatUser
     */
    public function setUserName($userName)
    {
        $this->userName = $userName;

        return $this;
    }

    /**
     * Get userName
     *
     * @return string
     */
    public function getUserName()
    {
        return $this->userName;
    }

    /**
     * Set mobile
     *
     * @param string $mobile
     *
     * @return BaseWebchatUser
     */
    public function setMobile($mobile)
    {
        $this->mobile = $mobile;

        return $this;
    }

    /**
     * Get mobile
     *
     * @return string
     */
    public function getMobile()
    {
        return $this->mobile;
    }

    /**
     * Set password
     *
     * @param string $password
     *
     * @return BaseWebchatUser
     */
    public function setPassword($password)
    {
        $this->password = $password;

        return $this;
    }

    /**
     * Get password
     *
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return BaseWebchatUser
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set isEnabled
     *
     * @param boolean $isEnabled
     *
     * @return BaseWebchatUser
     */
    public function setIsEnabled($isEnabled)
    {
        $this->isEnabled = $isEnabled;

        return $this;
    }

    /**
     * Get isEnabled
     *
     * @return boolean
     */
    public function getIsEnabled()
    {
        return $this->isEnabled;
    }

    /**
     * Set creator
     *
     * @param string $creator
     *
     * @return BaseWebchatUser
     */
    public function setCreator($creator)
    {
        $this->creator = $creator;

        return $this;
    }

    /**
     * Get creator
     *
     * @return string
     */
    public function getCreator()
    {
        return $this->creator;
    }

    /**
     * Set ip
     *
     * @param string $ip
     *
     * @return BaseWebchatUser
     */
    public function setIp($ip)
    {
        $this->ip = $ip;

        return $this;
    }

    /**
     * Get ip
     *
     * @return string
     */
    public function getIp()
    {
        return $this->ip;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return BaseWebchatUser
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Set country
     *
     * @param string $country
     *
     * @return BaseWebchatUser
     */
    public function setCountry($country)
    {
        $this->country = $country;

        return $this;
    }

    /**
     * Get country
     *
     * @return string
     */
    public function getCountry()
    {
        return $this->country;
    }

    /**
     * Set province
     *
     * @param string $province
     *
     * @return BaseWebchatUser
     */
    public function setProvince($province)
    {
        $this->province = $province;

        return $this;
    }

    /**
     * Get province
     *
     * @return string
     */
    public function getProvince()
    {
        return $this->province;
    }

    /**
     * Set city
     *
     * @param string $city
     *
     * @return BaseWebchatUser
     */
    public function setCity($city)
    {
        $this->city = $city;

        return $this;
    }

    /**
     * Get city
     *
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Set signature
     *
     * @param string $signature
     *
     * @return BaseWebchatUser
     */
    public function setSignature($signature)
    {
        $this->signature = $signature;

        return $this;
    }

    /**
     * Get signature
     *
     * @return string
     */
    public function getSignature()
    {
        return $this->signature;
    }

    /**
     * Set sex
     *
     * @param string $sex
     *
     * @return BaseWebchatUser
     */
    public function setSex($sex)
    {
        $this->sex = $sex;

        return $this;
    }

    /**
     * Get sex
     *
     * @return string
     */
    public function getSex()
    {
        return $this->sex;
    }

    /**
     * Set headImgUrl
     *
     * @param string $headImgUrl
     *
     * @return BaseWebchatUser
     */
    public function setHeadImgUrl($headImgUrl)
    {
        $this->headImgUrl = $headImgUrl;

        return $this;
    }

    /**
     * Get headImgUrl
     *
     * @return string
     */
    public function getHeadImgUrl()
    {
        return $this->headImgUrl;
    }

    /**
     * Set email
     *
     * @param string $email
     *
     * @return BaseWebchatUser
     */
    public function setEmail($email)
    {
        $this->email = $email;

        return $this;
    }

    /**
     * Get email
     *
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set deviceId
     *
     * @param string $deviceId
     *
     * @return BaseWebchatUser
     */
    public function setDeviceId($deviceId)
    {
        $this->deviceId = $deviceId;

        return $this;
    }

    /**
     * Get $deviceId
     *
     * @return string
     */
    public function getDeviceId()
    {
        return $this->deviceId;
    }

    /**
     * Set deviceText
     *
     * @param string $deviceText
     *
     * @return BaseWebchatUser
     */
    public function setDeviceText($deviceText)
    {
        $this->deviceText = $deviceText;

        return $this;
    }
    /**
     * Get $deviceText
     *
     * @return string
     */
    public function getDeviceText()
    {
        return $this->deviceText;
    }


    /**
     * Set $eviceImei
     *
     * @param string $deviceImei
     *
     * @return BaseWebchatUser
     */
    public function setDeviceImei($deviceImei)
    {
        $this->deviceImei = $deviceImei;

        return $this;
    }

    /**
     * Get $eviceImei
     *
     * @return string
     */
    public function getDeviceImei()
    {
        return $this->deviceImei;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
